<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>修改动画</title>
  <meta name="description" content="一个充满童话世界的地方，带你回味童年." />
  <meta name="keywords" content="童话、英雄和魔法" />
  <link rel="shortcut icon" href="images/favicon.ico" />
  <!-- 引入我们自己的样式文件 -->
    <link rel="stylesheet" type="text/css" href="css/content.css"/>
    <script>
        function check() {
            var b = document.getElementById("txt_Name").value;
            var c = document.getElementById("pic").value;
            var d = document.getElementById("txt_Code").value;
            var f = document.getElementById("txt_Name1").value;
            var g = document.getElementById("txt_Code1").value;
            var i = document.getElementById("txt_Name2").value;
            var j = document.getElementById("txt_Code2").value;
            var l = document.getElementById("txt_Name3").value;
            var m = document.getElementById("txt_Code3").value;
            var n = document.getElementById("pic3").value;
            if (b === "" || d === "" || f === "" || g === "" || i === "" || j === "" || l === "" || m === "") {
                alert("请将数据填写完整！");
                return false;
            }
            return true;
        }
    </script>
</head>

<body>
<div style=" padding-left:4px;">
    <table width="1200" border="0" cellpadding="0" cellspacing="0">
        <tr height="30">
            <td width="270" background="images/title01.jpg" class="title">&gt;&gt;动画管理</td>
            <td width="30"><img src="images/title002.gif"/></td>
            <td width="530" bgcolor="#d9f0ff" class="txt">您的位置：后台管理 &gt;动画管理&gt; 动画信息</td>
        </tr>
    </table>
    <br/>
    <h3>修改动画信息</h3>
    <form action="${pageContext.request.contextPath}/updateAnimation" method="post" enctype="multipart/form-data"
          onsubmit="return check();">
        <table width="500" border="0" cellpadding="0" cellspacing="0" style="line-height:40px">
            <tr>
                <td width="177" align="right">动画名称：</td>
                <td width="347"><input name="anim_name" type="text" id="txt_Name" value="${info.anim_name}"/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画封面：</td>
                <td width="347">
                    <img width="100px" height="100px"
                         src="${pageContext.request.contextPath}/upload/${info.anim_picurl}"
                         alt="">
                           <br/>
                         <input name="pic" type="file" id="pic" value=""/>
                  
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画介绍：</td>
                <td><textarea name="anim_jieshao" id="txt_Code">${info.anim_jieshao}</textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">动画视频：</td>
                <td width="347">
                   
                    <video width="200px" height="200px"
                           src="${pageContext.request.contextPath}/upload/${info.anim_vedio_url}" controls
                           autoplay></video>
                               <br/>
                            <input name="shipin" type="file" id="shipin" value=""/>
                
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称1：</td>
                <td><input name="anim_j1_name" type="text" id="txt_Name1" value="${info.anim_j1_name}"/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍1：</td>
                <td><textarea name="anim_j1_jieshao" id="txt_Code1">${info.anim_j1_jieshao}</textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色1图片：</td>
                <td width="347">
                    <img width="100px" height="100px"
                         src="${pageContext.request.contextPath}/upload/${info.anim_j1_picurl}"
                         alt="">
                            <br/>
                         <input name="pic1" type="file" id="pic1" value=""/>
                 
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称2：</td>
                <td><input name="anim_j2_name" type="text" id="txt_Name2" value="${info.anim_j2_name}"/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍2：</td>
                <td><textarea name="anim_j2_jieshao" id="txt_Code2">${info.anim_j2_jieshao}</textarea>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色2图片：</td>
                <td width="347">
                    <img width="100px" height="100px"
                         src="${pageContext.request.contextPath}/upload/${info.anim_j2_picurl}"
                         alt="">
                           <br/>
                         <input name="pic2" type="file" id="pic2" value=""/>
                  
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色名称3：</td>
                <td><input name="anim_j3_name" type="text" id="txt_Name3" value="${info.anim_j3_name}"/>
                    *
                </td>
            </tr>
            <tr>
                <td align="right">角色介绍3：</td>
                <td><textarea name="anim_j3_jieshao" id="txt_Code3">${info.anim_j3_jieshao}</textarea>
                </td>
            </tr>
            <tr>
                <td align="right">角色3图片：</td>
                <td width="347"> <img width="100px" height="100px"
                         src="${pageContext.request.contextPath}/upload/${info.anim_j3_picurl}"
                         alt="">
                         <br/>
                <input name="pic3" type="file" id="pic3" value=""/>
                    
                   
                    *
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input id="btn_Save" value="保存" type="submit"/>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="btn_Save2" value="重置" type="reset"/>
                    <input type="hidden" name="anim_id" value="${info.anim_id}">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>

</html>